<<<<<<< HEAD

#![allow(dead_code)]

enum Person {
    Skinny,
    Fat,
    Height(i32),
    Weight(i32),
    Info {
        name: String,
        height: i32
    }
}

fn main() {

=======
/// main

fn age() -> i32 {
    15
}

enum Response {
    Success,
    Error
}

struct Nil;

#[derive(Debug)]
struct Pair(i32, i32);

struct Point {
    x: i32,
    y: i32
}

#[allow(dead_code)]
struct Ret {
    p1: Point,
    p2: Point
}

fn main() {
    let res_success = Response::Success;
    let reff = &4;

    let p = Pair(2, 3);
    let Pair(p1x, p2x) = p;

    println!("{:?}", p);
    println!("{:?}-{:?}", p1x, p2x);

    println!("{:?}", reff);

    // match 覆盖了类型所有可能值的情况下 就不需要
    // 通用的 arm 了
    match res_success {
        Response::Success => println!("succ"),
        Response::Error=> println!("error"),
    }
>>>>>>> 38453649de711a53d42a7c4c6ca98b0f56016cd2
}
